package com.ruoyi.admin.model.response;

import lombok.Data;

import java.util.List;

@Data
public class UserPaperDetailResp {
    //主键id
    private Long paperId;
    //试卷名称
    private String paperName;
    //试卷类型
    private Integer paperType;
    //试卷状态
    private Integer paperStatus;
    //倒计时
    private Integer countdown;

    private List<ModuleDTO> moduleList;

    private Long userPaperId;

    private Integer paperScore;

    @Data
    public static class ModuleDTO {
        //试卷id
        private Long paperId;
        //模块类型
        private Integer moduleType;
        //模块名称
        private String moduleName;

        private Integer moduleScore;

        private List<TopicDTO> topicList;

        private Long userModuleId;
    }

    @Data
    public static class TopicDTO {
        private Long topicId;
        //试卷id
        private Long paperId;
        //试卷模块id
        private Integer moduleType;

        private String moduleName;
        //题目
        private String topic;
        //题目内容
        private String content;

        private List<UserQuestionInfoResp> questionList;
    }

    @Data
    public static class UserQuestionInfoResp {

        private Long questionId;

        //问题
        private String question;

        /**
         * 问题类型
         * 0选择题
         * 1填空题
         * 2口语题
         * 3写作题
         */
        private Integer questionType;

        //选项
        private List<String> optionList;

        //答案
        private String answer;

        private String materialUrl;

        /**
         * 材料类型
         * 0音频
         * 1图片
         * 2文章
         * 3其他
         */
        private Integer materialType;

        //文本
        private String materialContent;

        private Long topicId;

        private String userAnswer;
    }

}
